package thinkinginjava.polymorphism;
import static thinkinginjava.myutil.Print.print;
class Meal{
	 Meal(){print("Meal()");}
}
class Bread{
	Bread(){print("Bread()");}
}
class Cheese{
	Cheese(){print("Cheese()");}
}
class Lettuce{
     Lettuce() {print("Lettuce()");	}
}
class Lunch extends Meal{
	Lunch(){print("Lunch()");}
}
class ProtableLunch extends Lunch{
	ProtableLunch(){print("ProtableLunch()");}
}
public class SandWich extends ProtableLunch{
    private Bread b =new Bread();
    private Cheese c = new Cheese();
    private Lettuce l = new Lettuce();
    public SandWich() {
	    print("SandWich()");	
	}
    public static void main (String[] args){
	    print("sssssssss");	
           new SandWich();
    }
}
